package com.gdsdxy.bookshop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@ApiModel("购物车表")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("cart")
public class Cart {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("购物车编号")
    private Integer cartid;

    @ApiModelProperty("用户编号")
    private Integer useid;

    @ApiModelProperty("书籍编号")
    private Integer bookid;

    @ApiModelProperty("书籍单价")
    private Double price=0D;

    @ApiModelProperty("书籍数量")
    private Integer quantity;

}
